package br.com.felix.clearcase.command;

import br.com.felix.easyclearcase.EasyClearCaseFile;
import br.com.felix.easyclearcase.EasyClearCaseFile.ClearCaseStatus;

/**
 * This command finds all files that are not synchronized with the VOB.
 * That is, files that are checked out and files that are private_view.
 * 
 * */
public class FindCheckouts extends ClearToolCommand {

	
	public FindCheckouts(EasyClearCaseFile f){
		this.file = f;
	}
	
	
	
	/**
	 * @see ClearToolCommand#toCommandLine()
	 * */
	@Override
	public String toCommandLine() {
		return "cleartool ls -r -view_only -short \""+file.getAbsolutePath()+"\"";
	}



	@Override
	public String getCommandName() {
		return "Find Checkouts";
	}



	@Override
	public ClearCaseStatus getStatusAfterExecution() {
		return null;
	}

}
